<script setup>
// import { getBannerAPI } from '@/apis/home'
import {  ref } from 'vue'

const bannerList = ref([
  '../../../../public/banner10.jpg',
  '../../../../public/banner7.jpg',
  '../../../../public/banner8.jpg',
  '../../../../public/banner9.jpg',
  '../../../../public/banner6.jpg'
])
console.log("category",bannerList.value);
</script>



<template>
  <div class="home-banner">
    <el-carousel height="500px">
      <el-carousel-item>
        <img src="../../../../public/banner10.jpg" alt="">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner6.jpg" alt="">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner7.jpg" alt="">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner8.jpg" alt="">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner9.jpg" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>



<style scoped lang='scss'>
.home-banner {
  width: 1240px;
  height: 500px;
  margin: 0 auto;
  img {
    width: 100%;
    height: 500px;
  }
}
</style>